package main

import "fmt"

func main() {
	var a [5]int
	var b [3]int
	b[1] = 80
	b[2] = 100
	b[0] = 200
	fmt.Println(a, b)
	var c = [1]string{"Tony"}
	fmt.Println(c)

	var arr = [3]int{1, 2, 3}
	arr2 := arr
	arr2[0] = 3
	fmt.Println(arr, arr2)

	var arr3 = [...]string{"北京", "上海", "深圳"}
	for i := 0; i < len(arr3); i++ {
		fmt.Println(arr3[i])
	}

	for index, value := range arr3 {
		fmt.Println(index, value)
	}
}
